//订单管理
import request from '@/utils/request';

// 查询订单管理列表
export function listOrder(query) {
  return request({
    url: '/system/order/item/list',
    method: 'post',
    data: query
  })
};

//订单成交金额，成交订单，成交产品数量，平均客单价
export function orderTotal(query) {
  return request({
    url: '/system/order/item/statisticsList',
    method: 'post',
    data: query
  })
};

//新增合同
export function addContract(query) {
  return request({
    url: '/system/contract',
    method: 'post',
    data: query
  })
};

// 获取关联用户列表
export function getMemberList(params) {
  return request({
    url: '/system/user/memberList',
    method: 'get',
    params: params
  })
};